<?php /* Smarty version 2.6.18, created on 2010-03-10 23:39:54
         compiled from orgorganismlist.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'orgorganismlist.tpl', 21, false),array('modifier', 'number_format', 'orgorganismlist.tpl', 30, false),)), $this); ?>
 <div>
	<table border="0" width="100%">
		<tr><td colspan="10"><hr></td></tr>
		<tr>
			<?php if ($this->_tpl_vars['orgOrganisms'][0]['name'] <> ''): ?>
				<td align="center" style="padding-left: 5pt, padding-right: 5pt">&nbsp;&nbsp;Edit&nbsp;&nbsp;</td>
			<?php endif; ?>
			<td align="center">Image</td>
			<td>Name</td>
			<td align="right">Ordering Status</td>
			<td align="right">Last Buy</td>
			<td align="right">Last Sale</td>
			<td align="right">Base Price</td>
			<td align="right">Reorder</td>
			<td>Default Supplier</td>
			<td align="right">Min Order</td>
		</tr>
		<tr><td colspan="10"><hr></td></tr>
		<tr>
		<?php $_from = $this->_tpl_vars['orgOrganisms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['organism']):
?>
			<tr class="<?php echo smarty_function_cycle(array('values' => 'blue,notify'), $this);?>
">
			<?php if ($this->_tpl_vars['organism']['name'] <> ''): ?>
				<td align="center"><a href="javascript:void(0);" onclick="editOrgOrganism('<?php echo $this->_tpl_vars['organism']['org_organism_id']; ?>
');">Edit</a></td>
			<?php endif; ?>
			<td width="10%" align="center">   
				<img  onclick="PopEx(this, null, null, null, 300, 50, 'PopBoxImageLarge');" pbCaption="<i><?php echo $this->_tpl_vars['organism']['scientific_name']; ?>
</i>, <?php echo $this->_tpl_vars['organism']['name']; ?>
" id="trade<?php echo $this->_tpl_vars['key']; ?>
" width="98" src="/app/default/www/images/thumbs/<?php echo $this->_tpl_vars['organism']['image']; ?>
.jpg" pbsrc="/app/default/www/images/thumbs/<?php echo $this->_tpl_vars['organism']['image']; ?>
.jpg" class="PopBoxImageSmall" title="Click to magnify/shrink">
			</td>
			<td><i><?php echo $this->_tpl_vars['organism']['scientific_name']; ?>
</i><br><?php echo $this->_tpl_vars['organism']['name']; ?>
</td>
			<td align="right"><?php echo $this->_tpl_vars['organism']['ordering_status']; ?>
</td>
			<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['organism']['last_buy'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "2%d") : number_format($_tmp, "2%d")); ?>
</td>
			<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['organism']['last_sale'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "2%d") : number_format($_tmp, "2%d")); ?>
</td>
			<td align="right"><?php echo $this->_tpl_vars['organism']['currency_mark']; ?>
&nbsp;&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['organism']['base_price_sale'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "2%d") : number_format($_tmp, "2%d")); ?>
</td>
			<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['organism']['reorder_level'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "0%d") : number_format($_tmp, "0%d")); ?>
</td>
			<td><?php echo $this->_tpl_vars['organism']['supplier_name']; ?>
</td>
			<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['organism']['min_order'])) ? $this->_run_mod_handler('number_format', true, $_tmp, "0%d") : number_format($_tmp, "0%d")); ?>
</td>
			</tr>
		<?php endforeach; endif; unset($_from); ?>
		<tr><td height="20"></td></tr>
		</tr>
	</table>
 </div>